package com.azt.api.pojo;

import com.azt.pojo.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;

@Table(name = "u_msg_config")
public class MsgConfig extends BaseEntity
{
    
    /* 消息类别（取自数据字典） */
	@Column(name = "msgType")
    private java.lang.Integer msgType;
    
    /* 消息名称 */
	@Column(name = "name")
    private java.lang.String name;
    
    /* 消息代码 */
	@Column(name = "code")
    private java.lang.String code;
    
    /* 手机消息内容 */
	@Column(name = "telContent")
    private java.lang.String telContent;
	
    /* 邮件消息内容 */
	@Column(name = "emailContent")
    private java.lang.String emailContent;
	
    /* 站内信消息内容 */
	@Column(name = "mailContent")
    private java.lang.String mailContent;
    
    /* 0采供双方1采购商2供应商 */
	@Column(name = "roleType")
    private java.lang.Integer roleType;
	
    /* 消息描述 */
	@Column(name = "descr")
    private java.lang.String descr;
    
    /* 站内信发送 */
	@Column(name = "ifMail")
    private java.lang.Integer ifMail = 0;
    
    /* 手机发送 */
	@Column(name = "ifMobile")
    private java.lang.Integer ifMobile = 0;
    
    /* 邮箱发送 */
	@Column(name = "ifEmail")
    private java.lang.Integer ifEmail = 0;
	
    /* 短信接口   1：乾景通2：螺丝帽 */
	@Column(name = "interfaceType")
    private java.lang.Integer interfaceType = 1;
    
    /* 是否系统默认 */
	@Column(name = "ifDefault")
    private java.lang.Integer ifDefault = 0;
	
	@Column(name = "ifAudit")
	private Integer ifAudit=0;
	
	
	/* 短信指定发送人 */
	@Column(name = "appointTels")
    private java.lang.String appointTels;

    public Integer getIfAudit() {
		return ifAudit;
	}

	public void setIfAudit(Integer ifAudit) {
		this.ifAudit = ifAudit;
	}

	public static final Integer IS_DEFAULT = 1;

    public static final Integer NO_DEFAULT = 0;


    @Column(name = "title")
    private String title;
	
	@Transient
	private String msgName;
	@Transient
	private Integer uifMail;
	@Transient
	private Integer uifMobile;
	@Transient
	private Integer uifEmail;

	public Integer getUifMail() {
		return uifMail;
	}

	public void setUifMail(Integer uifMail) {
		this.uifMail = uifMail;
	}

	public Integer getUifMobile() {
		return uifMobile;
	}

	public void setUifMobile(Integer uifMobile) {
		this.uifMobile = uifMobile;
	}

	public Integer getUifEmail() {
		return uifEmail;
	}

	public void setUifEmail(Integer uifEmail) {
		this.uifEmail = uifEmail;
	}

	public String getMsgName() {
		return msgName;
	}

	public void setMsgName(String msgName) {
		this.msgName = msgName;
	}

	public java.lang.Integer getMsgType()
    {
        return this.msgType;
    }
    
    public void setMsgType(java.lang.Integer value)
    {
        this.msgType = value;
    }
    
    public java.lang.String getName()
    {
        return this.name;
    }
    
    public void setName(java.lang.String value)
    {
        this.name = value;
    }
    
    public java.lang.String getCode()
    {
        return this.code;
    }
    
    public void setCode(java.lang.String value)
    {
        this.code = value;
    }
    
    public java.lang.String getTelContent() {
		return telContent;
	}

	public void setTelContent(java.lang.String telContent) {
		this.telContent = telContent;
	}

	public java.lang.String getEmailContent() {
		return emailContent;
	}

	public void setEmailContent(java.lang.String emailContent) {
		this.emailContent = emailContent;
	}

	public java.lang.String getMailContent() {
		return mailContent;
	}

	public void setMailContent(java.lang.String mailContent) {
		this.mailContent = mailContent;
	}

	public java.lang.Integer getRoleType()
    {
        return this.roleType;
    }
    
    public void setRoleType(java.lang.Integer value)
    {
        this.roleType = value;
    }
    
    public java.lang.Integer getIfMail()
    {
        return this.ifMail;
    }
    
    public void setIfMail(java.lang.Integer value)
    {
        this.ifMail = value;
    }
    
    public java.lang.Integer getIfMobile()
    {
        return this.ifMobile;
    }
    
    public void setIfMobile(java.lang.Integer value)
    {
        this.ifMobile = value;
    }
    
    public java.lang.Integer getIfEmail()
    {
        return this.ifEmail;
    }
    
    public void setIfEmail(java.lang.Integer value)
    {
        this.ifEmail = value;
    }
    
    public java.lang.Integer getIfDefault()
    {
        return this.ifDefault;
    }
    
    public void setIfDefault(java.lang.Integer value)
    {
        this.ifDefault = value;
    }

	public java.lang.String getDescr() {
		return descr;
	}

	public void setDescr(java.lang.String descr) {
		this.descr = descr;
	}

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

	public java.lang.Integer getInterfaceType() {
		return interfaceType;
	}

	public void setInterfaceType(java.lang.Integer interfaceType) {
		this.interfaceType = interfaceType;
	}
	
	public java.lang.String getAppointTels() {
		return appointTels;
	}

	public void setAppointTels(java.lang.String appointTels) {
		this.appointTels = appointTels;
	}
}
